package cn.sunan.org.mapper;

import cn.sunan.org.domain.Department;
import cn.sunan.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //查询
    List<Department> selectAll();
    //单个查询
    Department selctById(Long id);
    //新增
    void save(Department department);
    //修改
    void  update(Department department);
    //删除
    void  delete(Long id);

    //分页查询+条件查询
    List<Department> selectpage(DepartmentQuery departmentQuery);
    //查询总数
    Long count(DepartmentQuery departmentQuery);

}
